#ifndef __CSTRING_H__
#define __CSTRING_H__

#include <QString>
#include <QTextEdit>
#include <string.h>

class CString: public QString
{
public:
    CString();
    CString(const QString &str);
    CString(const uint8_t *num,uint32_t len);
    CString(const QTextEdit& TextEdit);
    CString(const char *unicode, int size = -1);

    void addspace();
    void subspace();

    void touint8(uint8_t* num);

    void print_TextEdit(QTextEdit& TextEdit);

    void scanf_TextEdit(QTextEdit& TextEdit);

    CString &operator = (const QString &);
    CString &operator = (const char *);
};

#endif  //  !__CSTRING_H__
